<?php defined('SYSPATH') or die('No direct script access.');



//属性规则
Route::set('news_admin_attr', 'news/admin/attrid(/<action>(/<params>))', array('params' => '.*'))
    ->defaults(array(
        'controller' => 'attrid',
        'action' => 'index',
        'directory'=>'admin/news'
    ));

Route::set('news_admin', 'news/admin((/<controller>)(/<action>(/<params>)))', array('params' => '.*'))
    ->defaults(array(
        'controller' => 'news',
        'action' => 'index',
        'directory'=>'admin'
    ));